var Nrg_Uiw_Element = new Class({
	
	Implements: [Options, Events],
	
	options: {},
	
	label: '',
	
	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------
	
	initialize: function(options)
	{
		this.setOptions(options);
		
		if ( this.options.label ) {
			this.setLabel( this.options.label );
		}
	},

	//--------------------------------------------------------------------------

	/**
	 * Sets the label of the element.
	 * @return Nrg_Ui_Element
	 */
	setLabel: function(label)
	{
		this.label = label;
		return this;
	},
	
	//--------------------------------------------------------------------------
	
	/**
	 * Gets the label of the UI element.
	 * @return string
	 */
	getLabel: function()
	{
		return this.label;
	}
	
	//--------------------------------------------------------------------------
	
});